#si puo' scrivere piu' decentemente
CC = gcc
CFLAGS = -g -Wall
SOURCES=cmtr.c cmtr_test.c
OBJECTS=$(SOURCES:.c=.o)
EXECUTABLE=cmtr_test
INCFLAGS = 
LDFLAGS = -Wl,-rpath,/usr/local/lib
LIBS = 

.SUFFIXES:
.SUFFIXES:	.c .cc .C .cpp .o

all: $(OBJECTS) $(EXECUTABLE) test

cmtr_test:  seatest.o cmtr.o cmtr_test.o
	$(CC) -o $@ $? $(LDFLAGS) $(LIBS)

test:	
	./cmtr_test

.c.o :
	$(CC) -o $@ -c $(CFLAGS) $< $(INCFLAGS)

count:
	wc *.c *.cc *.C *.cpp *.h *.hpp

clean:
	rm -f *.o cmtr cmtr_test

.PHONY: all
.PHONY: count
.PHONY: clean
.PHONY: test
